package com.example.hobbyplanetserve.properties;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component//是一个注解，它允许 Spring 自动检测自定义 Bean
@ConfigurationProperties(prefix = "hobby-planet.jwt")
@Data
public class JwtProperties {

    /**
     * jwt令牌相关配置
     */
    @Getter
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

}
